// 获取学业完成情况

import axios from "axios"

export default function () {
    return axios({
        method: "get",
        url: "/api/schoolWork",
        header: {
            Authorization: localStorage.getItem("Authorization")
        }
    }).then(response => {
        return {
            result: true,
            data: response.data
        }
    }).catch(error => {
        return {
            result: false,
            msg: error.response.data.msg
        }
    })
}